<%@ Control Language="C#" AutoEventWireup="true" Codebehind="PlayerVictimControl.ascx.cs"
    Inherits="ASP_TF2LogParser.UserControls.PlayerVictimControl" %>
<div id="PlayerVictimDivId">
    <div id="PlayerVictimHeaderDivId">
        Victim Stats
    </div>
    <div id="PlayerVictimDataDivId">
        <asp:GridView ID="playerVictimsGridView" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            DataSourceID="ObjectDataSource1">
            <Columns>
                <asp:TemplateField HeaderText="Match" SortExpression="PlayerName">
                    <ItemTemplate>
                        <asp:Label runat="server" Text='<%# GenerateUrl( Eval("PlayerName").ToString(), Eval("Victim_PlayerId").ToString() ) %>'
                            ID="PlayerNameLabel"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Kills" HeaderText="Kills" SortExpression="Kills" />
                <asp:BoundField DataField="Deaths" HeaderText="Deaths" SortExpression="Deaths" />
                <asp:BoundField DataField="KillDeathRatio" HeaderText="KillDeathRatio" SortExpression="KillDeathRatio" />
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetPlayerVictims"
            TypeName="LogParser.DA.PlayerModel">
            <SelectParameters>
                <asp:QueryStringParameter Name="playerId" QueryStringField="playerId" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
</div>
